package design.patterns.behavioral.mediator.v1;

/**
 * @author gjx
 * @version v1.0
 * @Description
 * @date 2019/4/11 8:49
 */
public class User {
    private String name;

    public User(String name) {
        this.name = name;
    }

    public void sendMsg(User user, String message){
        System.out.println(name+"向"+user.name+"发送："+message);
    }
}
